import Vue from 'vue'
import App from './App.vue'
import router from './router'
import axios from 'axios'
import './plugins/element.js'
import '../theme/index.css'
import './assets/css/base.css'



/**
 * 配置项目请求基本域名
 * @type {string}
 */
axios.defaults.baseURL = ''
// 设置拦截器，添加请求头
axios.interceptors.request.use(config => {
  //console.log(config)
  config.headers.Authorization = window.sessionStorage.getItem('token')
  return config
})
Vue.prototype.$http = axios
Vue.config.productionTip = false

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
